package com.ruoyi.lowcode.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 模型业务对象 lc_model
 *
 * @author ruoyi
 * @date 2023-09-30
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class LcModelBo extends BaseEntity {

    /**
     * 模型id
     */
    @NotNull(message = "模型id不能为空", groups = { EditGroup.class })
    private Long modelId;

    /**
     * 模型名称
     */
    @NotBlank(message = "模型名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String modelName;

    /**
     * 数据源
     */
    @NotNull(message = "数据源不能为空", groups = { AddGroup.class, EditGroup.class })
    private String databaseSourceId;

    /**
     * 路由链接
     */
    private String url;

    private String exocytosis;

    private String modelJson;

    /**
     * 查询sql
     */
    @NotBlank(message = "查询sql不能为空", groups = { AddGroup.class, EditGroup.class })
    private String selectSql;

    @NotBlank(message = "统计sql不能为空", groups = { AddGroup.class, EditGroup.class })
    private String countSql;

    /**
     * 删除sql
     */
//    @NotBlank(message = "删除sql不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deleteSql;

    private String isAdd;
    private String isUpdate;
    private String isDelete;

    private String isExport;

    /**
     * 备注
     */
    private String remark;


}
